package logic.bean;

import java.io.Serializable;

import logic.util.Util;


public class TrainIndexModel
        implements
        Serializable
{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8322675012860696980L;
	public String             name;                                   //模块名称
	public int                type;                                   //  模块类型 1：接入蓝狮子 2：课件深入 3：题型考试主要演示用  4：学习记录 5: 排行榜
	public String             blackColor;
	
	public String getBlackColor() {
		return blackColor;
	}
	
	public void setBlackColor(String blackColor) {
		this.blackColor = blackColor;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getType() {
		return type;
	}
	
	public void setType(int type) {
		this.type = type;
	}
	
	public int getModuleColor() {
		String color = blackColor;
		int intColor = 0;
		if (Util.isEmpty(color))
		{
			color = "ff3ba5de";
		}
		try
		{
			intColor = Util.OxStringtoInt(color);
		}
		catch (Exception e)
		{
			intColor = 0xff3ba5de;
		}
		return intColor;
	}
}
